package cn.stylefeng.guns.modular.inventory.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.inventory.entity.MoveDiskDetailed;
import cn.stylefeng.guns.modular.inventory.model.params.MoveDiskDetailedParam;
import cn.stylefeng.guns.modular.inventory.model.result.MoveDiskDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 动盘明细表 服务类
 * </p>
 *
 * @author hu
 * @since 2019-08-08
 */
public interface MoveDiskDetailedService extends IService<MoveDiskDetailed> {

    /**
     * 新增
     *
     * @author hu
     * @Date 2019-08-08
     */
    void add(MoveDiskDetailedParam param);

    /**
     * 删除
     *
     * @author hu
     * @Date 2019-08-08
     */
    void delete(MoveDiskDetailedParam param);

    /**
     * 更新
     *
     * @author hu
     * @Date 2019-08-08
     */
    void update(MoveDiskDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author hu
     * @Date 2019-08-08
     */
    MoveDiskDetailedResult findBySpec(MoveDiskDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author hu
     * @Date 2019-08-08
     */
    List<MoveDiskDetailedResult> findListBySpec(MoveDiskDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author hu
     * @Date 2019-08-08
     */
     LayuiPageInfo findPageBySpec(MoveDiskDetailedParam param, String condition,Long deptId,Long operateId);

    LayuiPageInfo deleteList(MoveDiskDetailedParam moveDiskDetailedParam, String condition,Long deptId);

    List<MoveDiskDetailedResult> historyDetailedList(MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findByDetailedList(MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findPositionList(MoveDiskDetailedParam param);

    LayuiPageInfo abnormalList(MoveDiskDetailedParam param);

    List<MoveDiskDetailedResult> spreadList(MoveDiskDetailedParam stockParam);

	LayuiPageInfo querylistPageBySpec(MoveDiskDetailedParam moveDiskDetailedParam, String condition);

    List<MoveDiskDetailedResult> findListByDiskDetailed(MoveDiskDetailedParam param);

	List<MoveDiskDetailedResult> appabnormalliststaylist(MoveDiskDetailedParam param,Long deptId);
}
